package vn.orderonline.web.admin.controller;

import java.io.Serializable;

import org.springframework.security.access.PermissionEvaluator;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;

@Component(value = "permissionEvaluator")
public class PermissionService implements PermissionEvaluator {
	public boolean hasPermission(Authentication authentication,
			Object targetDomainObject, Object permission) {
		boolean hasPermission = true;
		System.out.println("123");
		return hasPermission;
	}

	public boolean hasPermission(Authentication authentication,
			Serializable targetId, String targetType, Object permission) {
		// TODO Auto-generated method stub
		System.out.println("1234");
		return false;
	}

}
